package cn.gok.demo18.dao;

import cn.gok.demo18.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
@Mapper
@Repository
public interface UserDao {
    public List<User> selectAllUser();
    public User selectByUser(int id);
    public int addUser(User user);
    public int updateUser(User user);
    public int deleteUser(int id);
    public String login(User user);
//    public int  register(User user);
    public User selectByNameAndPassword(String name,String password);

}
